import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/mars',
    name: 'MarsViewer',
    component: () => import('../components/MarsViewer.vue')
  },
  {
    path: '/science',
    name: 'ScienceChat',
    component: () => import('../views/ScienceChat.vue')
  },
  {
    path: '/professional',
    name: 'ProfessionalChat',
    component: () => import('../views/ProfessionalChat.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/login.vue'),
    meta: {
    layout: 'blank',
    redirectIfLoggedIn: true
  }
  },
  {
    path: '/register',
    name: 'Register',
    component: () => import('../views/register.vue'),
    meta: {
    layout: 'blank',
    redirectIfLoggedIn: true
  }
  },

]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

export default router
